﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hired
{
    public partial class search : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void rblCategory_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (rblCategory.SelectedIndex)
            {
                case 0: // jobs
                    pnlJobs.Visible = true;
                    pnlPeople.Visible = false;
                    pnlCompanies.Visible = false;
                    pnlCourses.Visible = false;
                    break;
                case 1:
                    pnlJobs.Visible = false;
                    pnlPeople.Visible = true;
                    pnlCompanies.Visible = false;
                    pnlCourses.Visible = false;
                    break;
                case 2:
                    pnlJobs.Visible = false;
                    pnlPeople.Visible = false;
                    pnlCompanies.Visible = true;
                    pnlCourses.Visible = false;
                    break;
                case 3:
                    pnlJobs.Visible = false;
                    pnlPeople.Visible = false;
                    pnlCompanies.Visible = false;
                    pnlCourses.Visible = true;
                    break;
            }
        }
    }
}